<div class="clear"></div>
<div id="bottom">
    <?$count = (isset($showForm) ? $showForm : false) ? 1 : 2;
    $i=0;?>
    <?foreach ($items as $v ):?>
        <?if ($i<=$count):?>
            <div class="bottomDiv">
                <?if ($v['select2']==1){
                    $link = '/signs/sign/'.$v['select1'];
                    $class='';
                } elseif($v['select2']==2) {
                    $link = $v['url'];
                    $class='';
                } elseif($v['select2']==3) {
                    $link = '#';
                    $class=$v['note1'];
                } else {
                    $class='';
                    $link='';
                }?>
                <a href="<?=$link;?>" class="<?=$class;?>" title="<?=(isset($v['name'])) ? $v['name'] : ''?>">
                    <img src="<?=(isset($v['box4'])) ? $v['box4'] : ''?>"
                          title="<?=(isset($v['name'])) ? $v['name'] : ''?>" />
                </a>
            </div>
        <?endif;
        $i++;?>
    <?endforeach;?>
    <?if (isset($showForm) ? $showForm : false):?>
        <div class="bottomDiv ideaForm">
            <form id="ideaForm" method="post">
                <span class="newLine bold">HAVE A GREAT SIGN IDEA?</span>
                <span class="newLine">Enter it below and we may feature it!</span>
                <?=$formIdea;?>
                <span class="newLine">Clicking SEND, you agree to the</span>
                <span class="newLine"><a href="#" class="termsOfUse">terms of service and submission rules.</a></span>
                <span class="blueMessege sendForm">SEND</span>
        </div>
    <?endif;?>
</div>